<h1>Editing result</h1>

<% form_for(@result) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :home_team %><br />
    <%= f.text_field :home_team %>
  </p>
  <p>
    <%= f.label :away_team %><br />
    <%= f.text_field :away_team %>
  </p>
  <p>
    <%= f.label :home_point %><br />
    <%= f.text_field :home_point %>
  </p>
  <p>
    <%= f.label :away_point %><br />
    <%= f.text_field :away_point %>
  </p>
  <p>
    <%= f.label :processed %><br />
    <%= f.check_box :processed %>
  </p>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @result %> |
<%= link_to 'Back', results_path %>
